package com.kcral.javase.ch.properties;

/**
 * @TODO
 * @Author xu
 * 2025/3/3
 */
public class Director extends Employee{
    private double transportationAllowance;
    public Director(String name, String address, double salary, double transportationAllowance) {
        super(name, address, salary);
        this.transportationAllowance = transportationAllowance;
    }

    public Director() {
    }

    public Director(double transportationAllowance) {
        this.transportationAllowance = transportationAllowance;
    }

    /**
     * 获取
     * @return transportationAllowance
     */
    public double getTransportationAllowance() {
        return transportationAllowance;
    }

    /**
     * 设置
     * @param transportationAllowance
     */
    public void setTransportationAllowance(double transportationAllowance) {
        this.transportationAllowance = transportationAllowance;
    }
@Override
    public void show() {
        super.show();
        System.out.println("交通补助"+   transportationAllowance);
    }

}
